package Memoir 
{
	/**
	 * God state for level testing during development.
	 */
	import org.flixel.*;
	
	public class GodState extends FlxState
	{
		[Embed(source = '../Assets/placeholder.png')] private var MyImg:Class;
		private static var bar:FlxButton;
		private static var cemetary:FlxButton;
		private static var coffee:FlxButton;
		private static var library:FlxButton;
		private static var mall:FlxButton;
		private static var office:FlxButton;
		private static var park:FlxButton;
		private static var suburb:FlxButton;
		private static var tv:FlxButton;
		private static var zoo:FlxButton;
		
		public function GodState():void
		{
			FlxG.mouse.show();
			FlxState.bgColor = 0xFF000000;
			var mytxt:FlxText = new FlxText(0,0,800,"  I am not bound by space or time!");
			mytxt.size = 36;
			add(new FlxSprite(0,100,MyImg));
			add(mytxt);
			var x1:uint = 50;
			var x2:uint = 650;
			
			bar = new FlxButton(x1,150,goBar);
			bar.loadText(new FlxText(0,0,100,"bar"));
			cemetary = new FlxButton(x1,250,goCem);
			cemetary.loadText(new FlxText(0,0,100,"cemetary"));
			coffee = new FlxButton(x1,350, goCof);
			coffee.loadText(new FlxText(0,0,100,"coffee house"));
			library = new FlxButton(x1,450,goLib);
			library.loadText(new FlxText(0,0,100,"library"));
			mall = new FlxButton(x1,550, goMal);
			mall.loadText(new FlxText(0,0,100,"mall"));
			office = new FlxButton(x2,150,goOff);
			office.loadText(new FlxText(0,0,100,"office"));
			park = new FlxButton(x2,250,goPar);
			park.loadText(new FlxText(0,0,100,"park"));
			suburb = new FlxButton(x2,350,goSub);
			suburb.loadText(new FlxText(0,0,100,"suburb"));
			tv = new FlxButton(x2,450,goTV);
			tv.loadText(new FlxText(0,0,100,"tv studio"));
			zoo = new FlxButton(x2,550,goZoo);
			zoo.loadText(new FlxText(0,0,100,"zoo"));
			
			this.add(bar);
			this.add(cemetary);
			this.add(coffee);
			this.add(library);
			this.add(mall);
			this.add(office);
			this.add(park);
			this.add(suburb);
			this.add(tv);
			this.add(zoo);
		}
		
		private function goBar():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateBar();
		}				
		private function goCem():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateCemetary();
		}				
		private function goCof():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateCoffeeHouse();
		}				
		private function goLib():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateLibrary();
		}				
		private function goMal():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateMall();
		}				
		private function goOff():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateOffice();
		}				
		private function goPar():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStatePark();
		}				
		private function goSub():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateSuburb();
		}				
		private function goTV():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateTVStudio();
		}				
		private function goZoo():void
		{
			FlxG.mouse.hide();
			FlxG.state = new Memoir.PlayStateZoo();
		}
		
	}
}